package com.media.selector.camera

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.media.selector.BR
import com.media.selector.R
import com.media.selector.databinding.ActivityCameraBinding
import com.media.selector.media.helper.FLAGS_FULLSCREEN

/**
 * date        ：2020/4/17
 * author      ：蒙景博
 * description ：
 */

class CameraActivity : AppCompatActivity() {

    private lateinit var mBinding: ActivityCameraBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_camera)
        mBinding.lifecycleOwner = this
        mBinding.setVariable(BR.data, this)
    }

    override fun onResume() {
        super.onResume()
        mBinding.cameraNavHostFragment.postDelayed({
            mBinding.cameraNavHostFragment.systemUiVisibility = FLAGS_FULLSCREEN
        }, 500)
    }
}

